namespace StaffingSystem.EF
{
    using System;
    using System.Collections.Generic;
    using System.ComponentModel.DataAnnotations;
    using System.ComponentModel.DataAnnotations.Schema;
    using System.Data.Entity.Spatial;

    public partial class View_Tasks
    {
        [Key]
        [Column(Order = 0)]
        [StringLength(20)]
        public string TaskTypeName { get; set; }

        [Key]
        [Column(Order = 1)]
        [StringLength(50)]
        public string TaskName { get; set; }

        [Key]
        [Column(Order = 2)]
        public DateTime BeginTime { get; set; }

        [Key]
        [Column(Order = 3)]
        public DateTime PendTime { get; set; }

        public DateTime? RendTime { get; set; }

        [Key]
        [Column(Order = 4)]
        [StringLength(20)]
        public string Originator { get; set; }

        [Key]
        [Column(Order = 5)]
        [StringLength(200)]
        public string Participant { get; set; }

        [StringLength(500)]
        public string Result { get; set; }

        [StringLength(500)]
        public string Remark { get; set; }

        [Key]
        [Column(Order = 6)]
        public bool State { get; set; }

        [Key]
        [Column(Order = 7)]
        public DateTime AddTime { get; set; }

        [Key]
        [Column(Order = 8)]
        [DatabaseGenerated(DatabaseGeneratedOption.None)]
        public int TaskTypeld { get; set; }

        [Key]
        [Column(Order = 9)]
        [DatabaseGenerated(DatabaseGeneratedOption.None)]
        public int Id { get; set; }
    }
}
